
export class TalentNodeModel {
    type: number
    attriName: any
    lvl: number
    lock: boolean
    constructor(opts: any = {}) {
        this.type = opts.type || 0
        this.attriName = opts.attriName || ""
        this.lvl = opts.lvl || 0
        this.lock = opts.lock || false
    }
}

export class TalentAttrisModel {
    gold: number
    exp: number
    constructor(opts: any = {}) {
        this.gold = opts.gold || 0
        this.exp = opts.exp || 0
    }
}

export class TalentModel {
    lvl: number
    activeIndex: number
    list: TalentNodeModel[][][]
    lockAmount: number
    resourceAttris: TalentAttrisModel
    listType: number[]
    constructor(opts: any = {}) {
        this.lockAmount = opts.lockAmount || 0
        this.lvl = opts.lvl || 0
        this.activeIndex = opts.activeIndex || 0
        this.list = opts.list || []
        this.resourceAttris =   new TalentAttrisModel(opts.resourceAttris)
        this.listType = opts.listType || [0, 0, 0]
    }
}